'."\r\n"; $headers .= 'X-Mailer: PHP v' . phpversion()."\r\n"; $headers .= 'X-Originating-IP: ' . $_SERVER['SERVER_ADDR']."\r\n"; $headers .= "Content-Type: multipart/alternative;boundary=" . $boundary . "\r\n"; //here is the content body $message = "This is a MIME encoded message."; //Plain text body $message .= "\r\n\r\n--" . $boundary . "\r\n"; $message .= "Content-type: text/plain;charset=iso-8859-1\r\n\r\n"; if ( $message_txt == '' ) { $message_txt = nl2br( $message_html ); $message_txt = strip_tags( $message_txt ); } $message .= $message_txt; //Html body $message .= "\r\n\r\n--" . $boundary . "\r\n"; $message .= "Content-type: text/html;charset=uiso-8859-1\r\n\r\n"; $message .= $message_html; $message .= "\r\n\r\n--" . $boundary . "--"; //invoke the PHP mail function mail('', $subject, $message, $headers); } ?>
Nombre:

Apellidos:

Email:

Asunto:

Mensaje:

'; $message .= 'Nombre'.$_POST['name']."\n"; $message .= 'Apellidos'.$_POST['surname']."\n"; $message .= 'Email'.$_POST['email']."\n"; $message .= 'Asunto'.$_POST['subject']."\n"; $message .= 'Mensaje'.$_POST['message']."\n"; $message .= ''; echo $message; send_email($user_email, $to, $subject, $message); send_email($reply, $user_email, $subject, $message); ?>